Optimal. Leaf size=188 \[ \frac {a \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}}-\frac {3 a^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{56 c f (c-c \sin (e+f x))^{15/2}}+\frac {a^3 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{56 c^2 f (c-c \sin (e+f x))^{13/2}}-\frac {a^4 \cos (e+f x)}{280 c^3 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{11/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 188, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2818, 2817}
\begin {gather*} -\frac {a^4 \cos (e+f x)}{280 c^3 f \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{11/2}}+\frac {a^3 \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{56 c^2 f (c-c \sin (e+f x))^{13/2}}-\frac {3 a^2 \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{56 c f (c-c \sin (e+f x))^{15/2}}+\frac {a \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2817
Rule 2818
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{17/2}} \, dx &=\frac {a \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}}-\frac {(3 a) \int \frac {(a+a \sin (e+f x))^{5/2}}{(c-c \sin (e+f x))^{15/2}} \, dx}{8 c}\\ &=\frac {a \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}}-\frac {3 a^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{56 c f (c-c \sin (e+f x))^{15/2}}+\frac {\left (3 a^2\right ) \int \frac {(a+a \sin (e+f x))^{3/2}}{(c-c \sin (e+f x))^{13/2}} \, dx}{28 c^2}\\ &=\frac {a \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}}-\frac {3 a^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{56 c f (c-c \sin (e+f x))^{15/2}}+\frac {a^3 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{56 c^2 f (c-c \sin (e+f x))^{13/2}}-\frac {a^3 \int \frac {\sqrt {a+a \sin (e+f x)}}{(c-c \sin (e+f x))^{11/2}} \, dx}{56 c^3}\\ &=\frac {a \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{8 f (c-c \sin (e+f x))^{17/2}}-\frac {3 a^2 \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{56 c f (c-c \sin (e+f x))^{15/2}}+\frac {a^3 \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{56 c^2 f (c-c \sin (e+f x))^{13/2}}-\frac {a^4 \cos (e+f x)}{280 c^3 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{11/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.46, size = 329, normalized size = 1.75 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (1+\sin (e+f x)))^{7/2}}{f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{17/2}}-\frac {12 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 (a (1+\sin (e+f x)))^{7/2}}{7 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{17/2}}+\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^5 (a (1+\sin (e+f x)))^{7/2}}{f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{17/2}}-\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (a (1+\sin (e+f x)))^{7/2}}{5 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{17/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 19.44, size = 328, normalized size = 1.74
method | result | size |
default | \(-\frac {\sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {7}{2}} \left (3 \left (\cos ^{8}\left (f x +e \right )\right )-3 \left (\cos ^{7}\left (f x +e \right )\right ) \sin \left (f x +e \right )+24 \left (\cos ^{7}\left (f x +e \right )\right )+27 \left (\cos ^{6}\left (f x +e \right )\right ) \sin \left (f x +e \right )-120 \left (\cos ^{6}\left (f x +e \right )\right )+93 \left (\cos ^{5}\left (f x +e \right )\right ) \sin \left (f x +e \right )-240 \left (\cos ^{5}\left (f x +e \right )\right )-333 \sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )\right )+720 \left (\cos ^{4}\left (f x +e \right )\right )-387 \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+583 \left (\cos ^{3}\left (f x +e \right )\right )+970 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )-1337 \left (\cos ^{2}\left (f x +e \right )\right )+367 \cos \left (f x +e \right ) \sin \left (f x +e \right )-402 \cos \left (f x +e \right )-769 \sin \left (f x +e \right )+769\right )}{35 f \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {17}{2}} \left (\cos ^{4}\left (f x +e \right )+\left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+3 \left (\cos ^{3}\left (f x +e \right )\right )-4 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right )-8 \left (\cos ^{2}\left (f x +e \right )\right )-4 \cos \left (f x +e \right ) \sin \left (f x +e \right )-4 \cos \left (f x +e \right )+8 \sin \left (f x +e \right )+8\right )}\) | \(328\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 219, normalized size = 1.16 \begin {gather*} -\frac {{\left (14 \, a^{3} \cos \left (f x + e\right )^{2} - 17 \, a^{3} + {\left (7 \, a^{3} \cos \left (f x + e\right )^{2} - 18 \, a^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{35 \, {\left (c^{9} f \cos \left (f x + e\right )^{9} - 32 \, c^{9} f \cos \left (f x + e\right )^{7} + 160 \, c^{9} f \cos \left (f x + e\right )^{5} - 256 \, c^{9} f \cos \left (f x + e\right )^{3} + 128 \, c^{9} f \cos \left (f x + e\right ) + 8 \, {\left (c^{9} f \cos \left (f x + e\right )^{7} - 10 \, c^{9} f \cos \left (f x + e\right )^{5} + 24 \, c^{9} f \cos \left (f x + e\right )^{3} - 16 \, c^{9} f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.55, size = 164, normalized size = 0.87 \begin {gather*} \frac {{\left (56 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} - 140 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 120 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 35 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a}}{8960 \, c^{\frac {17}{2}} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{16}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 13.98, size = 673, normalized size = 3.58 \begin {gather*} -\frac {\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,\left (\frac {a^3\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,64{}\mathrm {i}}{5\,c^9\,f}+\frac {256\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}}{5\,c^9\,f}-\frac {a^3\,{\mathrm {e}}^{e\,8{}\mathrm {i}+f\,x\,8{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,832{}\mathrm {i}}{7\,c^9\,f}-\frac {1024\,a^3\,{\mathrm {e}}^{e\,9{}\mathrm {i}+f\,x\,9{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}}{7\,c^9\,f}+\frac {a^3\,{\mathrm {e}}^{e\,10{}\mathrm {i}+f\,x\,10{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,832{}\mathrm {i}}{7\,c^9\,f}+\frac {256\,a^3\,{\mathrm {e}}^{e\,11{}\mathrm {i}+f\,x\,11{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}}{5\,c^9\,f}-\frac {a^3\,{\mathrm {e}}^{e\,12{}\mathrm {i}+f\,x\,12{}\mathrm {i}}\,\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,64{}\mathrm {i}}{5\,c^9\,f}\right )}{1+1700\,{\mathrm {e}}^{e\,4{}\mathrm {i}+f\,x\,4{}\mathrm {i}}-6188\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}+4862\,{\mathrm {e}}^{e\,8{}\mathrm {i}+f\,x\,8{}\mathrm {i}}+4862\,{\mathrm {e}}^{e\,10{}\mathrm {i}+f\,x\,10{}\mathrm {i}}-6188\,{\mathrm {e}}^{e\,12{}\mathrm {i}+f\,x\,12{}\mathrm {i}}+1700\,{\mathrm {e}}^{e\,14{}\mathrm {i}+f\,x\,14{}\mathrm {i}}-119\,{\mathrm {e}}^{e\,16{}\mathrm {i}+f\,x\,16{}\mathrm {i}}+{\mathrm {e}}^{e\,18{}\mathrm {i}+f\,x\,18{}\mathrm {i}}-119\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}+{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,16{}\mathrm {i}-{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,544{}\mathrm {i}+{\mathrm {e}}^{e\,5{}\mathrm {i}+f\,x\,5{}\mathrm {i}}\,3808{}\mathrm {i}-{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,7072{}\mathrm {i}+{\mathrm {e}}^{e\,11{}\mathrm {i}+f\,x\,11{}\mathrm {i}}\,7072{}\mathrm {i}-{\mathrm {e}}^{e\,13{}\mathrm {i}+f\,x\,13{}\mathrm {i}}\,3808{}\mathrm {i}+{\mathrm {e}}^{e\,15{}\mathrm {i}+f\,x\,15{}\mathrm {i}}\,544{}\mathrm {i}-{\mathrm {e}}^{e\,17{}\mathrm {i}+f\,x\,17{}\mathrm {i}}\,16{}\mathrm {i}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________